
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableBookConf {
    static TableName: string = "BookConf";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableBookConf.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 合成物名 */
    get name(): string {
        return this.data.name;
    }
    /** 动画文件名 */
    get nickName(): string {
        return this.data.nickName;
    }
    /** 满级攻击 */
    get atk(): number {
        return this.data.atk;
    }
    /** 满级防御 */
    get def(): number {
        return this.data.def;
    }
    /** 满级血量 */
    get hp(): number {
        return this.data.hp;
    }
    /** 满级速度 */
    get spd(): number {
        return this.data.spd;
    }
    /** 满级等级 */
    get level(): number {
        return this.data.level;
    }
    /** 满级星 */
    get star(): number {
        return this.data.star;
    }
    /** 满级阶 */
    get stage(): number {
        return this.data.stage;
    }
    /** 满级战力 */
    get zhanli(): number {
        return this.data.zhanli;
    }
    /** 图鉴分数 */
    get tujian(): any {
        return this.data.tujian;
    }
}
    